using Godot;

public partial class WeaponEnemyTarget : WeaponEntity
{
    public BaseWeaponAnimate WeaponAnimate { get; private set; }
    public WeaponEnemyTarget(SkillModel md, Robot robot) : base(md)
    {
        OwnerRobot = robot;
        WeaponAnimate = GameUtil.GetWeaponAnimate(md.AttackAnimate).Instantiate<BaseWeaponAnimate>();
    }

    public override void Cast(SkillEventEntity e = null)
    {
        // 武器专用 - 直接进入战斗画面
        GameManager.Instance.LevelManager.BattleManager.StartBattle(OwnerRobot, e.Target, this);
    }
}